import Https from '@/utils/https'

// 新增用户
const addUser = (params) => Https.post('/api/v1/user/addUser', params)
// 获取角色列表
const getRoleList = () => Https.get('/api/v1/authority/role/listSysRole')
// 编辑用户,包含修改启用标志，修改密码等
const editUser = (params) => Https.post('/api/v1/user/editUser', params)
// 删除用户
const delUser = (params) => Https.post('/api/v1/user/delUser', params, { json: false })
// 获取账号列表
const getAllAccount = (params) => Https.get('/api/v1/management/user/project/getUserPageList', params)

const getlistUserSecret = (params) => Https.get('/api/v1/secret/manage/listUserSecret', params)

export {
  addUser, getRoleList, editUser, delUser, getAllAccount, getlistUserSecret,
}
